﻿using IBll;
using IDal;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bll
{
    public class UserTypeBll:IUserTypeBll
    {
        private IUserDal<UserType> dal;

        public UserTypeBll(IUserDal<UserType> dal)
        {
            this.dal = dal;
        }
        /// <summary>
        /// 查询用户等级
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public List<UserType> GetUserTypes()
        {
            return dal.GetAllAsync().ToList();
        }
    }
}
